/*
 * #%L
 * java model
 * %%
 * Copyright (C) 2009 - 2011 prefabware.com Stefan Isele
 * %%
 * All Rights Reserved.
 * This program is dual-licensed under the GNU General Public license
 * or a commercial license.
 * You may select to use one or the other of these licenses.
 * To obtain a commercial license please contact Stefan Isele at www.stefan-isele.de
 * Any modifications to this file must keep this entire header intact.
 * Redistribution, except as permitted by the selected license, is prohibited.
 * #L%
 */
package com.prefabware.jmodel.reference;

import com.prefabware.jmodel.JType;

/**
 * a reference from one type to another
 * @author sisele_job
 *
 * @param <HOLDER>
 */
public interface JReference<HOLDER> {
	/**
	 * @return the container of the reference. That is the object that holds the reference.
	 * That might be a JField, a JMethod, a JAnnotation
	 */
	HOLDER getHolder();
	JType getFrom();
	JType getTo();
	
}
